package com.tripwego.client.event;

import java.util.List;

import com.google.gwt.event.shared.GwtEvent;
import com.tripwego.client.model.TripModel;

public class InitListTripEvent extends GwtEvent<InitListTripEventHandler> {

	public static Type<InitListTripEventHandler> TYPE = new Type<InitListTripEventHandler>();

	private List<TripModel> results;

	public InitListTripEvent(List<TripModel> results) {
		this.results = results;
	}

	@Override
	public Type<InitListTripEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(InitListTripEventHandler handler) {
		handler.handleInitListTripEvent(this);
	}

	/**
	 * @return the results
	 */
	public List<TripModel> getResults() {
		return results;
	}

	/**
	 * @param results
	 *            the results to set
	 */
	public void setResults(List<TripModel> results) {
		this.results = results;
	}

}